-- GENERATED SPELL FOR [Vile Fire-Soul] --


function spell0_22298(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(9053,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22298', 3000, 1)
end

function Sorts_22298(pUnit, Event)
local choix_sorts_22298 = math.random(0, 0)
if choix_sorts_22298 == 0 then
pUnit:RegisterEvent('spell0_22298', 1, 1)
end
end

function mob22298_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22298', math.random(1500, 3000), 1)
end

function mob22298_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22298_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22298_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22298, 1, 'mob22298_Action')
RegisterUnitEvent(22298, 2, 'mob22298_Leave')
RegisterUnitEvent(22298, 3, 'mob22298_Kill')
RegisterUnitEvent(22298, 4, 'mob22298_Die')
